from django.db import models
from utils.basemodel import BaseModel

# Create your models here.

class Cart(BaseModel):
    user = models.ForeignKey('user.User', on_delete=models.CASCADE, verbose_name='用户')
    course = models.ForeignKey('course.Course', on_delete=models.CASCADE, verbose_name='课程')
    # count = models.IntegerField(verbose_name='数量',default=1)
    is_selected = models.BooleanField(default=True, verbose_name='是否选中')
    class Meta:
        db_table = 'cart'